<%@page contentType="text/html; charset=UTF-8" session="false" %>
<%@include  file="/WEB-INF/jspf/import.jspf"%>
<div class="pageHeader">
    <form onsubmit="return navTabSearch(this);" id="pagerForm" name="searchForm" method="get">
        <input type="hidden" name="pageNum" value="${pager.pageNo}" />
        <div class="searchBar">
            <table class="searchContent">
                <tbody>
                    <tr>
                        <td><label>查询时间：</label>
                            <input type="text" name="beginDate" id="start" datefmt="yyyy-MM-dd" value="${beginDate}" class="date" readonly="true">
                            至
                            <input type="text" name="endDate" id="end" datefmt="yyyy-MM-dd" value=""${endDate}" class="date" readonly="true">
                        </td>
                    </tr>
                </tbody>
            </table>
            <div class="subBar">
                <ul>
                    <li><div class="buttonActive"><div class="buttonContent"><button type="submit">查询</button></div></div></li>
                </ul>
            </div>
        </div>
    </form>
</div>
<div class="pageContent">
    <table class="table" style="width: 100%" layoutH="110">
        <thead>
            <tr>
                <th>用户ID</th>
                <th >用户名</th>
                <th>预警时间</th>
                <th >油值</th>
                <th>开始时间</th>
                <th>最后更新时间</th>
            </tr>
        </thead>
        <tbody>
            <c:forEach var="e" items="${pager.resultList}">
                <tr>
                    <td>${e.user.uid}</td>
                    <td><a target="_blank" href="${UCROOT}/${e.user.uid}/">${fn:escapeXml(e.user.username)}</a></td>
                    <td>${e.ymd}</td>
                    <td>${e.petrol}</td>
                    <td><fmt:formatDate value="${e.createAt}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
                    <td><fmt:formatDate value="${e.updateAt}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
                </tr>
            </c:forEach>
        </tbody>
    </table>
</div>
<div class="panelBar">
    <div class="pages">
        <span>共 ${pager.total} 条</span>
    </div>
    <div class="pagination" targetType="navTab" totalCount="${pager.total}" numPerPage="${pager.pageSize}" pageNumShown="10" currentPage="${pager.pageNo}"></div>
</div>